package nxu.it;

import io.jooby.Jooby;
import io.jooby.avaje.inject.AvajeInjectModule;
import io.jooby.freemarker.FreemarkerModule;
import io.jooby.jackson.JacksonModule;
import io.jooby.netty.NettyServer;
import nxu.it.controller.MainController;

public class App extends Jooby {

    {
        install(new NettyServer());
        install(new JacksonModule());
        install(new FreemarkerModule());
        install(AvajeInjectModule.of());
        mvc(MainController.class);
        assets("/static/*", "/static");
    }

    public static void main(final String[] args) {
        runApp(args, App::new);
    }

}